package com.myapi.client;

import java.io.Serializable;
import java.util.ArrayList;

import javax.jdo.annotations.Extension;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class CardDeckInfo implements Serializable{
	@PrimaryKey      
	   @Extension(vendorName="datanucleus", key="gae.encoded-pk", value="true")
	     @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
		     private String cdId; 
	
	@Persistent
		public static final int DECKSIZE = 52;
	@Persistent
		private ArrayList<CardInfo> cards;
		
	public CardDeckInfo() {
		// TODO Auto-generated constructor stub
	}

	public ArrayList<CardInfo> getCards() {
		return cards;
	}

	public void setCards(ArrayList<CardInfo> cards) {
		this.cards = cards;
	}

	public static int getDECKSIZE() {
		return DECKSIZE;
	}

}
